package cn.wolfcode.luowowo.airticket.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

//航班信息对象 by dj
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FlightMessage extends BaseDomain {

    private FlightDestination departCity;   //出发城市

    private FlightDestination destCity;     //目的地城市

    private String aircode;     //航班号

    private String depPort;      //起飞机场

    private String arrPort;       //降落机场

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="HH:mm", timezone = "GMT+8")
    private Date beginFly;      //起飞时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="HH:mm", timezone = "GMT+8")
    private Date endFly;        //降落时间

    private BigDecimal price;      //价格

    private Boolean ishot;      //热门


}
